<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'login.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  <style type="text/css">
	.login_form{
		margin-left:40%;
		margin-top:15%;
		width:300px;
		height:200px;
		border:1px solid #000;
	}
	.login_title{
		margin-top:20px;
		margin-left:120px;
		font-size:20px;
		color:red;
	}
	.username{
		margin-top:30px;
		margin-left:40px;
	}
	.password{
		margin-top:10px;
		margin-left:40px;
	}
	.text{
		width:150px;
	}
	.button{
		margin-top:20px;
	}
	.submit{
		margin-left:40px;
	}
	.reset{
		margin-left:105px;
	}
</style>
</head>

<body>
<div class="login_form">
   <form action="test?flog=0" method="post">
      <span class="login_title">登录</span>
      <div class="username"><span>用户名:</span><input class="text" type="text" name="username" /><br/></div>
      <div class="password"><span>密&nbsp;&nbsp;&nbsp;&nbsp;码:</span><input class="text" type="password" name="password" /><br/></div>
      <div class="button"><input type="submit" class="submit" name="submit" value="登录" /><input type="reset" class="reset" name="reset" value="重置" /><br/></div>
   </form>
</div>
</body>
</html>